<?php
/**
 * $Id: index.php 27 2009-06-27 02:26:17Z eyou80 $
 */

if(!is_file('config.inc.php') && is_file('install/index.php')) {
	header('Location:install/index.php');
}

require_once 'config.inc.php';

/** 注册一个初始化插件 **/
Tinyask_Plugin::factory('index.php')->begin();

/** 路由 **/
Tinyask_Router::route();

/** 注册一个结束插件 **/
Tinyask_Plugin::factory('index.php')->end();

//print_r($db->fetchAll($db->select('name, value')->from('table.config')));

/**
echo Tinyask_Request::getPathInfo();

$date = new Tinyask_Date(time() - 3530);
echo $date->word();

**/
